<template>
   <div>
    <h2>home组件内容</h2>
    <button><router-link to="/home/news">News</router-link></button>
    <button><router-link to="/home/message">Message</router-link></button>
    <router-view></router-view>
   </div>
</template>

<script>
    export default{
            name:'Home-test',
            /* mounted(){
                console.log('home组件挂载了')
            },
            beforeDestroy(){
                console.log('home销毁了')
            } */
            }
</script>

<style scoped>
    a{
        text-decoration: none;
    }
</style>